home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / pdselect / awnp / awnp-docs / menu.doc < prev    next >
Text File  |  2000-02-16  |  2KB  |  57 lines

  1. Menu gadget event
  2. -------------------------
  3.  
  4. 'menu menu_number item_number sub_item_number checked'
  5.  
  6. checked=0 Item is not checked
  7. checked=1 Item is checked
  8.  
  9. Menu gadget parameters.
  10. -------------------------
  11.  
  12. gadgettext="menudata"  (gt=)
  13.  
  14. This text defines a menu for the CA window. The data is the following format.
  15.  
  16. menu_title|menu_item0|menu_item1 ...
  17.  
  18. Each menu_item is the following format
  19.  
  20. [@hotkey][$][-][^][%][&][!][`][#HEX_number#]menu_item_title
  21.  
  22. @ = hotkey for menu, following character is hotkey.
  23. $ =  sub Item (of previous menu_item)
  24. - =  Display a separator bar (ignore text and other options for this item )
  25. ^ =  menu toggle
  26. % =  menu checkable (unchecked at startup)
  27. & =  menu checkable (checked at startup)
  28. ! =  highlight none
  29. ` =  disabled
  30. # =  mutual exclude. Note the trailing '#' MUST be used.
  31. If multiple flags are set they MUST be in the order shown.
  32.  
  33. Note: '`' is the only flag that may be set for the menu title.
  34. Note: Seperator bars are considered a menu item. Example
  35.  
  36. gt="dothis|-|dothat"
  37. dothis is item 0, the bar is item 1, dothat is item 2.
  38.  
  39. replace=GID
  40.  
  41.  Use this menu to replace an existing menu specified by GID.
  42.  
  43. Menu gadget modify parameters.
  44. -------------------------
  45.  
  46. disable=number (dis=)
  47.  
  48.  The menu or menu item is disabled if number = 0 , enabled if number != 0.
  49.  
  50. selected=number (s=)
  51.  
  52.   The menu item is checked if number != 0 , unchecked if number = 0. Ignored if a target is not specified.
  53.  
  54. target=number  (tar=)
  55.  
  56.  If a target is specified you are modifying a menu item. If a target is not specified you are modifying the menu itself.
  57.